#pragma once
#include "Dynamic.h"
#include "whip.h"
#include "Box.h"
#include "Static.h"
class Simon : public Dynamic
{
public:
	Sprite* simon;
	float disx,disy;
	bool isJump;
	bool isFight;
	bool isMove;
	bool isSit;
	bool onGround;
	bool isUpdate;
	bool isStair;
	bool isGoStair;
	int t;
	Box SimonBox;
public:
	Simon(void);
	~Simon(void);
	void Init(int left, int top);
	void RenderSimon();
	void Update();
	void UpdateWhip();

	void UpdateSimonBox(float ix, float iy, float iw, float ih, float ivx, float ivy);
	void CollideWithStaticObject();
	void CollideWithBrick(float normalx, float normaly, float collisiontime, Static* obj);
	void CollideWithStairLeft(float normalx, float normaly, float collisiontime, Static* obj);
	void ProcessInput();
	void OnKeyDown(int keyCode);
};